namespace EggOfPanKu.Library.Objects
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Xml;
    using System.Xml.Linq;

    public class Strategy : Card
    {
        #region Fields

        private string _Cost;
        private string _Focus;

        #endregion Fields

        #region Constructors

        public Strategy(string CardID)
            : base(CardID)
        {
        }

        public Strategy(XElement CardNode)
            : base(CardNode)
        {
            string ID = (string)CardNode.Attribute("id").Value;
            //Set Cost
            Cost = (string)CardNode.Element("cost");
            if (String.IsNullOrEmpty(Cost))
                ParseWarning("Cost");

            //Set Focus
            Focus = (string)CardNode.Element("focus");
            if (String.IsNullOrEmpty(Focus))
                ParseWarning("Focus");
        }

        #endregion Constructors

        #region Properties

        public override CardType CardType
        {
            get { return CardType.Strategy; }
        }

        public string Cost
        {
            get { return _Cost; }
            set { _Cost = value; }
        }

        public override CardDeck DeckType
        {
            get { return CardDeck.Fate; }
        }

        public string Focus
        {
            get { return _Focus; }
            set { _Focus = value; }
        }

        #endregion Properties
    }
}